/* The definitions below were taken from Clean.h, as it is. */

#define Clean(a)
/*
//	a string in Clean is:
	struct clean_string {
		int clean_string_length;
		char clean_string_characters[clean_string_length];
	};
//	The string does not end with a '\0' !
*/
typedef struct clean_string * CleanString;


/* CleanStringLength(clean_string) returns the length of the clean_string in characters */
#define CleanStringLength(clean_string) (*(unsigned int *)(clean_string))

/* CleanStringCharacters(clean_string) returns a pointer to the characters of the clean_string */
#define CleanStringCharacters(clean_string) ((char*)(1+(unsigned int *)(clean_string)))

/* CleanStringSizeInts(string_length) return size of *CleanString in integers */
#define CleanStringSizeInts(string_length) (1+(((unsigned int)(string_length)+3)>>2))

/* CleanStringVariable(clean_string,string_length) defines variable clean_string with length string_length,
   before using the clean_string variable, cast to CleanString, except for the macros above  */
#define CleanStringVariable(clean_string,string_length) unsigned int clean_string[CleanStringSizeInts(string_length)]

/* CleanStringSizeBytes(string_length) return size of *CleanString in bytes */
#define CleanStringSizeBytes(string_length) (4+(((unsigned int)(string_length)+3) & -4))

typedef int *CleanIntArray;

/* CleanIntArraySize(clean_array) returns the size (number of elements) of the clean_int_array */
#define CleanIntArraySize(clean_int_array) (((unsigned int *)(clean_int_array))[-2])

typedef double *CleanRealArray;

/* CleanRealArraySize(clean_real_array) returns the size (number of elements) of the clean_real_array */
#define CleanRealArraySize(clean_real_array) (((unsigned int *)(clean_real_array))[-2])

typedef unsigned char *CleanCharArray;

/* CleanCharArraySize(clean_char_array) returns the size (number of elements) of the clean_char_array */
#define CleanCharArraySize(clean_char_array) (((unsigned int *)(clean_char_array))[-1])




/*

   generated by makejapih   DO NOT EDIT

      Wed Sep 19 18:37:17 2007


 */

#ifndef JAPI_H

    #define JAPI_H




    /*  BOOLEAN   */
    #define J_TRUE                                  1
    #define J_FALSE                                 0



    /*  ALIGNMENT   */
    #define J_LEFT                                  0
    #define J_CENTER                                1
    #define J_RIGHT                                 2
    #define J_TOP                                   3
    #define J_BOTTOM                                4
    #define J_TOPLEFT                               5
    #define J_TOPRIGHT                              6
    #define J_BOTTOMLEFT                            7
    #define J_BOTTOMRIGHT                           8



    /*  CURSOR   */
    #define J_DEFAULT_CURSOR                        0
    #define J_CROSSHAIR_CURSOR                      1
    #define J_TEXT_CURSOR                           2
    #define J_WAIT_CURSOR                           3
    #define J_SW_RESIZE_CURSOR                      4
    #define J_SE_RESIZE_CURSOR                      5
    #define J_NW_RESIZE_CURSOR                      6
    #define J_NE_RESIZE_CURSOR                      7
    #define J_N_RESIZE_CURSOR                       8
    #define J_S_RESIZE_CURSOR                       9
    #define J_W_RESIZE_CURSOR                       10
    #define J_E_RESIZE_CURSOR                       11
    #define J_HAND_CURSOR                           12
    #define J_MOVE_CURSOR                           13



    /*  ORIENTATION   */
    #define J_HORIZONTAL                            0
    #define J_VERTICAL                              1



    /*  FONTS   */
    #define J_PLAIN                                 0
    #define J_BOLD                                  1
    #define J_ITALIC                                2
    #define J_COURIER                               1
    #define J_HELVETIA                              2
    #define J_TIMES                                 3
    #define J_DIALOGIN                              4
    #define J_DIALOGOUT                             5



    /*  COLORS   */
    #define J_BLACK                                 0
    #define J_WHITE                                 1
    #define J_RED                                   2
    #define J_GREEN                                 3
    #define J_BLUE                                  4
    #define J_CYAN                                  5
    #define J_MAGENTA                               6
    #define J_YELLOW                                7
    #define J_ORANGE                                8
    #define J_GREEN_YELLOW                          9
    #define J_GREEN_CYAN                            10
    #define J_BLUE_CYAN                             11
    #define J_BLUE_MAGENTA                          12
    #define J_RED_MAGENTA                           13
    #define J_DARK_GRAY                             14
    #define J_LIGHT_GRAY                            15
    #define J_GRAY                                  16



    /*  BORDERSTYLE   */
    #define J_NONE                                  0
    #define J_LINEDOWN                              1
    #define J_LINEUP                                2
    #define J_AREADOWN                              3
    #define J_AREAUP                                4



    /*  MOUSELISTENER   */
    #define J_MOVED                                 0
    #define J_DRAGGED                               1
    #define J_PRESSED                               2
    #define J_RELEASED                              3
    #define J_ENTERERD                              4
    #define J_EXITED                                5
    #define J_DOUBLECLICK                           6



    /*  COMPONENTLISTENER   */



    /*  J_MOVED   */
    #define J_RESIZED                               1
    #define J_HIDDEN                                2
    #define J_SHOWN                                 3



    /*  WINDOWLISTENER   */
    #define J_ACTIVATED                             0
    #define J_DEACTIVATED                           1
    #define J_OPENED                                2
    #define J_CLOSED                                3
    #define J_ICONIFIED                             4
    #define J_DEICONIFIED                           5
    #define J_CLOSING                               6



    /*  IMAGEFILEFORMAT   */
    #define J_GIF                                   0
    #define J_JPG                                   1
    #define J_PPM                                   2
    #define J_BMP                                   3



    /*  LEDFORMAT   */
    #define J_ROUND                                 0
    #define J_RECT                                  1



    /*  RANDOMMAX   */
    #define J_RANDMAX                               2147483647

extern void cStr(CleanString, char *);



#endif /* JAPI_H */


